#	$(CXX) 等同于g++
#	$^ 	   依赖项
#	$@     目标
#	@      不显示打印信息
# 	-      对与某一行运行失败，继续执行,不影响后面代码执行
#	$(RM)  等同于rm
TARGET=first_make
LIBS=-lpthread
OBJECT=first_make.o xdata.o


$(TARGET):$(OBJECT)
	@echo "begin build $(TARGET)"
	@$(CXX) $^ -o $@ $(LIBS)
	@echo "$(TARGET) build success!"

clean:
	@$(RM) $(OBJECT) $(TARGET)
.PHONY:clean *clean